package examples.lesson1;

public class OperatorIf
{
	public static void main(String[] args)
	{
		int a = 8;
		int b = 2;
		float div;

		if (b != 0)
		{
			div = (float) a / b;
			System.out.println(a + "/" + b + "=" + div);
		}
		else
		{
			System.out.println("Error: Cannot divide into 0");
		}

	}
}
